package com.adnaan.restaurant.service;

import com.adnaan.restaurant.entity.ResShoppingCart;

import java.util.List;

public interface IResShoppingCartService {
    public ResShoppingCart selectShoppingCartByDishesId(Long userId, Long dishesId);

    public int updateShoppingCartNum(Long id, Integer newQuantity);

    public int insertShoppingCart(ResShoppingCart resShoppingCart);

    List<ResShoppingCart> findAll(Long userId, Long shopId);

    int delCartDishes(Long id);

    int clearCart(Long userId, Long shopId);

    int updateNum(Long id, Integer newQuantity);
}
